<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style/admin/style.css" />
<link rel="stylesheet" type="text/css" href="/javascript/home/webuploader/webuploader.css" />
<link rel="stylesheet" type="text/css" href="/kindeditor/skins/tinymce.css" />
    <script type="text/javascript">
 	var VAR_MODULE = "<?php echo conf("VAR_MODULE");?>";
	var VAR_ACTION = "<?php echo conf("VAR_ACTION");?>";
	var MODULE_NAME	=	'<?php echo MODULE_NAME; ?>';
	var ACTION_NAME	=	'<?php echo ACTION_NAME; ?>';
	var ROOT = '__APP__';
	var ROOT_PATH = '<?php echo APP_ROOT; ?>';
	var CURRENT_URL = '<?php echo trim($_SERVER['REQUEST_URI']);?>';
	var INPUT_KEY_PLEASE = "<?php echo (L("INPUT_KEY_PLEASE")); ?>";
	var TMPL = '__TMPL__';
	var APP_ROOT = '<?php echo APP_ROOT; ?>';
</script>
<script type="text/javascript" src="/javascript/home/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/javascript/admin/jquery.timer.js"></script>
<script type="text/javascript" src="/javascript/admin/script.js"></script>
<script type="text/javascript" src="/javascript/admin/lang.js"></script>
<script type="text/javascript" src="/javascript/home/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="/javascript/admin/calendar/WdatePicker.js"></script>
<script type="text/javascript" src="/javascript/admin/common.js"></script>
</head>
<body>
<div id="info"></div>

<script type="text/javascript" src="/javascript/admin/jquery.bgiframe.js"></script>
<script type="text/javascript" src="/javascript/admin/jquery.weebox.js"></script>
<script type="text/javascript" src="/javascript/admin/user.js"></script>
<link rel="stylesheet" type="text/css" href="/style/admin/weebox.css" />
<script type="text/javascript">
	function show_content(id)
	{
		$.weeboxs.open(ROOT+'?m=DealMsgList&a=show_content&id='+id, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:600});
	}
	function send(id)
	{
		$.ajax({ 
				url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=send&id="+id, 
				data: "ajax=1",
				success: function(msg){
					alert(msg);
				}
		});
	}
</script>
<div class="main">
<div class="main_title"><?php echo ($main_title); ?></div>
<div class="blank5"></div>
<div class="button_row">
	<input type="button" class="button" value="<?php echo (L("FOREVERDEL")); ?>" onclick="foreverdel();" />
	
	<input type="button" id="reset_sending" class="button" value="<?php echo (L("CANCEL_SENDING")); ?>" onclick="reset_sending('DEAL_MSG_LOCK');" />
	
</div>
<div class="blank5"></div>
<div class="search_row">
	<form name="search" action="__APP__" method="get">	
		<?php echo (L("SEND_DEST")); ?>：<input type="text" class="textbox" name="dest" value="<?php echo trim($_REQUEST['dest']);?>" style="width:100px;" />
		<?php echo (L("CONTENT")); ?>：<input type="text" class="textbox" name="content" value="<?php echo trim($_REQUEST['content']);?>" />
		<input type="hidden" value="DealMsgList" name="m" />
		<input type="hidden" value="index" name="a" />
		<input type="submit" class="button" value="<?php echo (L("SEARCH")); ?>" />
	</form>
</div>
<div class="blank5"></div>
<!-- Think 系统列表组件开始 -->
<table id="dataTable" class="dataTable" cellpadding=0 cellspacing=0 ><tr><td colspan="13" class="topTd" >&nbsp; </td></tr><tr class="row" ><th width="8"><input type="checkbox" id="check" onclick="CheckAll('dataTable')"></th><th width="50px  "><a href="javascript:sortBy('id','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("ID")); echo ($sortType); ?> "><?php echo (L("ID")); if(($order) == "id"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('send_type','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("SEND_TYPE")); ?>  <?php echo ($sortType); ?> "><?php echo (L("SEND_TYPE")); ?>  <?php if(($order) == "send_type"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('dest','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("SEND_DEST")); ?>  <?php echo ($sortType); ?> "><?php echo (L("SEND_DEST")); ?>  <?php if(($order) == "dest"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('user_id','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("USER_NAME")); ?>  <?php echo ($sortType); ?> "><?php echo (L("USER_NAME")); ?>  <?php if(($order) == "user_id"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('title','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("TITLE")); ?>  <?php echo ($sortType); ?> "><?php echo (L("TITLE")); ?>  <?php if(($order) == "title"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('content','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("CONTENT")); ?>  <?php echo ($sortType); ?> "><?php echo (L("CONTENT")); ?>  <?php if(($order) == "content"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('create_time','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("CREATE_TIME")); ?>  <?php echo ($sortType); ?> "><?php echo (L("CREATE_TIME")); ?>  <?php if(($order) == "create_time"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('send_time','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("SEND_TIME")); ?>  <?php echo ($sortType); ?> "><?php echo (L("SEND_TIME")); ?>  <?php if(($order) == "send_time"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('is_send','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("SEND_STATUS")); ?>  <?php echo ($sortType); ?> "><?php echo (L("SEND_STATUS")); ?>  <?php if(($order) == "is_send"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('is_success','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("SEND_RESULT")); ?>  <?php echo ($sortType); ?> "><?php echo (L("SEND_RESULT")); ?>  <?php if(($order) == "is_success"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('result','<?php echo ($sort); ?>','DealMsgList','index')" title="按照<?php echo (L("SEND_INFO")); echo ($sortType); ?> "><?php echo (L("SEND_INFO")); if(($order) == "result"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th >操作</th></tr><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$msg): $mod = ($i % 2 );++$i;?><tr class="row" ><td><input type="checkbox" name="key" class="key" value="<?php echo ($msg["id"]); ?>"></td><td>&nbsp;<?php echo ($msg["id"]); ?></td><td>&nbsp;<?php echo (get_send_type_msg($msg["send_type"])); ?></td><td>&nbsp;<?php echo ($msg["dest"]); ?></td><td>&nbsp;<?php echo ($msg["user_id"]); ?></td><td>&nbsp;<?php echo ($msg["title"]); ?></td><td>&nbsp;<?php echo (show_content($msg["content"],$msg['id'])); ?></td><td>&nbsp;<?php echo (to_date($msg["create_time"])); ?></td><td>&nbsp;<?php echo (to_date($msg["send_time"])); ?></td><td>&nbsp;<?php echo (get_is_send($msg["is_send"])); ?></td><td>&nbsp;<?php echo (get_send_result($msg["is_success"])); ?></td><td>&nbsp;<?php echo ($msg["result"]); ?></td><td><a href="javascript:send('<?php echo ($msg["id"]); ?>')"><?php echo (L("SEND_NOW")); ?></a>&nbsp;<a href="javascript:foreverdel('<?php echo ($msg["id"]); ?>')"><?php echo (L("FOREVERDEL")); ?></a>&nbsp;</td></tr><?php endforeach; endif; else: echo "" ;endif; ?><tr><td colspan="13" class="bottomTd"> &nbsp;</td></tr></table>
<!-- Think 系统列表组件结束 -->
 

<div class="blank5"></div>
<div class="page"><?php echo ($page); ?></div>
</div>
</body>
</html>